<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    function fn() {
        console.log(this.name)
    }

    var person = {
        name: 'sunny',
        method: function (fn) {
            fn()
        }
    }

    person.method(fn, 4)
</script>
</body>
</html>